package com.jp.knowledge.my.business;

import com.jp.knowledge.my.model.VieCoinHistoryModel;

import java.util.ArrayList;
import java.util.List;

/**
 * @author gzejia 978862664@qq.com
 */
public class MyVieCoinBusiness {

    public List<VieCoinHistoryModel> getVieCoinHistories() {
        List<VieCoinHistoryModel> models = new ArrayList<>();
        String[] contents = {"每日使用", "阅读", "收藏", "关注", "分享", "爆料", "话题", "搜索",
                "竞品主题", "首次使用", "加入公司", "公司认证", "竞品说角色", "竟币支出"};
        int[] times = {250, 30, 30, 5, 2, 10, 50, 2, 1, 1, 1, 1, 1, 1};
        String[] units = {"次", "次", "次", "次", "次", "个", "次", "次", "个", "次",
                "次", "次", "次", "次"};
        int[] numbers = {10, 250, 30, 30, 10, 10, 20, 100, 40, 100, 100, 500, 200, 1500};
        int[] types = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0};
        for (int i = 0, k = contents.length; i < k; i++) {
            VieCoinHistoryModel model = new VieCoinHistoryModel();
            model.setContent(contents[i]);
            model.setTimes(times[i]);
            model.setUnit(units[i]);
            model.setNumber(numbers[i]);
            model.setType(types[i]);
            models.add(model);
        }
        return models;
    }
}
